package com.heima.article.feign;

import com.heima.article.dto.ApLikesBehavior;
import com.heima.article.dto.ApUnlikesBehavior;
import com.heima.article.dto.LikesBehaviorDto;
import com.heima.article.dto.UnLikesBehaviorDto;
import com.heima.common.dto.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient("leadnews-behavior")
public interface BehaviorFeign {

    /**
     * 查询点赞记录
     * @param dto
     * @return
     */
    @PostMapping("/api/v1/likes_behavior/getLikes")
    public ResponseResult<ApLikesBehavior> getLikes(@RequestBody LikesBehaviorDto dto);
    /**
     * 查询不喜欢记录
     * @param dto
     * @return
     */
    @PostMapping("api/v1/unlikes_behavior/getUnlikes")
    public ResponseResult<ApUnlikesBehavior> getUnlikes(@RequestBody UnLikesBehaviorDto dto);

}
